﻿<!DOCTYPE HTML>
<html>
{include file="public:header_css"}
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 门店管理 <span class="c-gray en">&gt;</span> 门店列表
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
	<div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
            <a class="btn btn-primary radius" href="{:url('add')}">
				<i class="Hui-iconfont">&#xe600;</i> 添加门店
			</a>
		</span>
		<span class="r">共有门店：<strong>{:count($list)}</strong> 家</span>
	</div>

	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-sort">
			<thead>
			<tr class="text-c">
				<th width="60">门店编号</th>
				<th width="180">门店名称</th>
				<th width="100">门店电话</th>
				<th width="250">门店地址</th>
				<th>门店简介</th>
				<th>批量导入学生信息</th>
				<th width="150">操作</th>
			</tr>
			</thead>
			<tbody id="shopList">
			{foreach name="list" item="val" key="key"}
			<tr class="text-c">
				<td>
					{$val.store_no}
				</td>
				<td class="text-l">
					{$val.store_name}
				</td>
				<td>
					{$val.store_tel}
				</td>
				<td class="text-l">
					{$val.store_address}
				</td>
				<td class="text-l">{$val.remark}</td>
				<td class="text-m" width="200px;">
                    <form method="post" action="{:url('student/excelToArray')}?store_id={$val.store_id}" enctype="multipart/form-data" >
                        <input name="excel" type="file">
                        <button class="btn btn-lg btn-primary btn-block" style="width: 50px;margin-left: 180px;margin-top: -25px;height: 28px;" id="button1">导入</button>
                    </form>
				</td>
				<td class="f-14 product-brand-manage">
					<a class="label label-secondary radius" href="{:url('bind', array('store_id'=>$val.store_id))}">绑定</a>
					<a class="label label-success radius" href="{:url('edit', array('store_id'=>$val.store_id))}">编辑</a>
				</td>
			</tr>
			{/foreach}
			{if count($list)<=0 }
			<tr class="text-c">
				<td colspan="7">
					暂无数据
				</td>
			</tr>
			{/if}
			</tbody>
		</table>
	</div>

</div>

{include file="public:footer_js"}

<script type="text/javascript" src="__STATIC__/admin/lib/layer/2.4/layer.js"></script>

<script type="text/javascript">

</script>
</body>
</html>